//
//  HomeHeaderFooterView.m
//  AffectionBee
//
//  Created by 李通 on 16/8/20.
//  Copyright © 2016年 chivalrous. All rights reserved.
//

#import "HomeHeaderFooterView.h"

@implementation HomeHeaderFooterView

- (instancetype)creatViewWithType:(BOOL)isHeader {
    
    UILabel *label = [[UILabel alloc]initWithFrame:self.bounds];
    if (isHeader) {
        
        label.text = @"新鲜热卖";
        label.font = [UIFont systemFontOfSize:14];
        label.frame = CGRectMake(20, self.bounds.origin.y, self.bounds.size.width, self.bounds.size.height);
    } else if (!isHeader) {
        
        label.text = @"点击查看更多商品 >";
        label.font = [UIFont systemFontOfSize:16];
        label.textAlignment = NSTextAlignmentCenter;
    }
    label.textColor = kLightGaryColor;
    [self addSubview:label];
    return self;
}

@end
